package com.itggm.task;


import com.itggm.service.LogInfoService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2025/1/2
 * @description
 */
@Component
public class ScheduleTask {

    @Resource
    private LogInfoService logInfoService;


    // 每月的最后一天执行
    @Scheduled(cron = "* * * L * ?")
    public void deleteLogs() {
        logInfoService.deleteLogs();
    }



}
